Skip to content

release(v5.2.0): telemetry endpoint_type field#125

Merged
saurabhjain1592 merged 2 commits intomainfrom
release/v5.2.0
Apr 8, 2026
Merged

release(v5.2.0): telemetry endpoint_type field#125
saurabhjain1592 merged 2 commits intomainfrom
release/v5.2.0

Conversation

@saurabhjain1592
Copy link
Copy Markdown
Member

Summary

Java SDK v5.2.0 (dated 2026-04-09) — adds telemetry endpoint_type field (issue #1525 tracked in axonflow-enterprise).

Changes

  • TelemetryReporter.classifyEndpoint(url) + EndpointType constants exported publicly
  • Classifications: localhost / private_network / remote / unknown
  • IPv6 bracket handling for [::1]
  • 20 JUnit 5 tests cover every classification branch + boundaries
  • Explicit test asserts serialized JSON never leaks URL fragments
  • Version bump 5.1.0 → 5.2.0 in pom.xml
  • CHANGELOG entry

Test plan

  • mvn test -Dtest=TelemetryEndpointTypeTest passes 20/20

Related

  • axonflow-enterprise#1547 ships checkpoint lambda changes

#1525 — Add endpoint_type field to checkpoint telemetry

- New TelemetryReporter.classifyEndpoint(url) public method and
  EndpointType inner class with LOCALHOST, PRIVATE_NETWORK, REMOTE,
  UNKNOWN constants.
- buildPayload overload accepting endpoint_type threads it into the
  JSON payload; sendPing classifies the configured URL once and reuses
  the classification inside the async task.
- 20 JUnit 5 tests cover localhost (hostname, IPv4, 127/8, bracketed
  IPv6, 0.0.0.0, *.localhost), RFC1918 (10.x, 192.168.x, 172.16-31
  plus 172.15/172.32 boundary), link-local, hostname suffixes (.local,
  .internal, .lan, .intranet), public hostnames, public IPv4, empty,
  null, and malformed inputs, case insensitivity, and an explicit
  leak test that asserts the serialized payload contains no URL
  fragments.
- IPv6 hostname handling: URI.getHost() returns "[::1]" with brackets
  in some JVM versions; we strip them before comparison.

Version bump:
- pom.xml: 5.1.0 → 5.2.0
@saurabhjain1592 saurabhjain1592 merged commit 06e8b90 into main Apr 8, 2026
9 checks passed
@saurabhjain1592 saurabhjain1592 deleted the release/v5.2.0 branch April 10, 2026 11:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant